/**
 * Created by pzs on 2017/10/26.
 *
 * 精算-复核 业务功能模块的路由文件
 */
module.exports = function (app) {

    var controller = require('../controllers/commission-controller');
    /*宝宝树四期 大使业绩统计的相关计算  pzs 20171031  start**/
    app.get('/rest/' + RESTFullServiceVersion + '/commission/ambassadorPerformance/:token/:deviceId', controller.ambassadorPerformance);
    /*宝宝树四期 大使业绩统计的相关计算  pzs 20171031  end**/

    /* 宝宝树66小区 sprint6 小区大使业绩页面 新增结算历史明细和佣金订单一览页面 add wangcan 20171208 start */
    // 佣金订单一览
    app.get('/rest/' + RESTFullServiceVersion + '/commission/commissionOrderList/:ts/:commType/:token/:deviceId', controller.getCommissionOrderList);

    // 团队佣金订单一览
    app.get('/rest/' + RESTFullServiceVersion + '/commission/teamCommissionOrderList/:ts/:commType/:token/:deviceId', controller.getTeamCommissionOrderList);

    // 佣金订单详情
    // app.get('/rest/' + RESTFullServiceVersion + '/commission/commissionOrderDetail/:orderId/:token/:deviceId', controller.getCommissionOrderDetail);

    // 结算历史一览
    app.get('/rest/' + RESTFullServiceVersion + '/commission/balanceHistoryList/:ts/:token/:deviceId', controller.getBalanceHistoryList);

    // 结算历史订单一览
    // app.get('/rest/' + RESTFullServiceVersion + '/commission/balanceOrderList/:ts/:balanceId/:balanceAmbUserId/:token/:deviceId', controller.getBalanceHisOrderList);

    // 结算历史明细
    app.get('/rest/' + RESTFullServiceVersion + '/commission/balanceHistoryDetail/:balanceId/:token/:deviceId', controller.getBalanceHistoryDetail);
    /* 宝宝树66小区 sprint6 小区大使业绩页面 新增结算历史明细和佣金订单一览页面 add wangcan 20171208 end */
};
